﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="AdminForMemberRegister.aspx.cs" Inherits="FYPHP.AdminForRegister" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">

        .style6
        {
            width: 203px;
        }
        .style1
        {
            width: 11px;
        }
        .style12
        {
            width: 24px;
        }
        .style11
        {
            height: 17px;
            width: 24px;
        }
        .style9
        {
            height: 17px;
        }
        .style4
        {
            width: 23px;
        }
        .style5
        {
            width: 32px;
        }
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        &nbsp;<br />
        <br />

        <script type="text/javascript"> var num = 0;</script>



        <asp:Repeater ID="UserList" runat="server" onitemcommand="rptAds_ItemCommand" EnableViewState="false">



        <HeaderTemplate>
<table cellpadding="5" cellspacing="5" width="722" border="1px solid #ffffff" align="center" style="border-collapse: collapse; border-color: #aaaaaa; text-align: center">
 <tr style="background-color: #eee; font-weight: bold;"><td>No.</td><td>User Name</td><td>Email</td><td>Action</td></tr>
</HeaderTemplate>

<ItemTemplate>

     <td>
     <script type="text/javascript">  num +=1; document.write(num);</script>
     </td>
           
            <td style="text-align: left">
            <%#DataBinder.Eval(Container.DataItem, "username" ) %> <br /> </td>
            <td width="70"> <%#DataBinder.Eval(Container.DataItem, "u_email" ) %></td>
            <td><asp:Button ID="btnView" runat="server" Text="View Member" CommandName="ViewPMember" 
        CommandArgument='<%# Eval("u_id").ToString() %>' />

            </td>

            </td>

        </tr>
       
   </ItemTemplate>

   <FooterTemplate>
   


    </table>
    </FooterTemplate>




        </asp:Repeater>
        <br />
        <br />
        <asp:MultiView ID="MultiView1" runat="server">
            <asp:View ID="View1" runat="server">
                <table>
                    <tr>
                        <td class="style6">
                            <strong>Profile picture:</strong><br />
                            <br />
                            <img width="200px" height="200px" src="\uploads\products\<% Response.Write(return_userpicture()); %>" alt="" />
                            &nbsp;&nbsp;
                        </td>
                        <td>
                            <div style="margin: 0 auto; width: 650px">
                                <table border="1" cellpadding="10" cellspacing="10" 
                                    style="width: 722px; border-collapse: collapse; border-color: #aaaaaa;">
                                    <tr>
                                        <td colspan="2">
                                            <span class="style1"><strong>Personal Information</strong><asp:Label 
                                                ID="lblUID" runat="server" Visible="False"></asp:Label>
                                            </span></td>
                                    </tr>
                                    <tr>
                                        <td class="style12">
                                            Name:</td>
                                        <td>
                                            <asp:Label ID="lblName" runat="server"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style11">
                                            Gender:</td>
                                        <td class="style9">
                                            <br />
                                            <asp:Label ID="lblGender" runat="server"></asp:Label>
                                            <br />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style12">
                                            Age:</td>
                                        <td>
                                            <asp:Label ID="lblAge" runat="server"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style12">
                                            Address:</td>
                                        <td class="style4">
                                            <asp:Label ID="lblAddress" runat="server"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style12">
                                            Email:</td>
                                        <td>
                                            <asp:Label ID="lblEmail" runat="server"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style12">
                                            Phone No.:</td>
                                        <td>
                                            <asp:Label ID="lblPhoneNo" runat="server"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style12">
                                            Reward Points:</td>
                                        <td>
                                            <asp:Label ID="lblRewardPoints" runat="server"></asp:Label>
                                        </td>
                                    </tr>
                            
                                </table>
                            </div>
                        </td>
                    </tr>
                </table>
                <br />
                <br />
                <asp:Button ID="Button1" runat="server" onclick="Button1_Click" 
                    Text="Approve" />
                &nbsp;<asp:Button ID="btnReject" runat="server" onclick="btnReject_Click" 
                    Text="Reject" />
                <br />
                <br />
                <br />
                <br />
            </asp:View>
        </asp:MultiView>
        <br />
        <br />
        <br />
        <br />
        <br />
    </p>
</asp:Content>
